package com.jiang.action;

import com.jiang.vo.Emp;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class EmpAction extends ActionSupport {

	private Emp emp ; //从Struts2.2开始自定义的对象都不需要实例化 记住要写getter与setter方法
	public Emp getEmp() {
		return emp;
	}
	public void setEmp(Emp emp) {
		this.emp = emp;
	}
	
	
	@Override
	public String execute() throws Exception {

		System.out.println(emp);
		return SUCCESS;
	}



}
